]> dgit.raspbian.org Git - gnome-shell.git/commit
layout: Check again for primary monitor after startup animation idle
author13r0ck <bnr@tuta.io>
Tue, 1 Feb 2022 20:04:19 +0000 (13:04 -0700)
committerMarge Bot <marge-bot@gnome.org>
Sun, 20 Mar 2022 22:48:51 +0000 (22:48 +0000)
commit85b51b9974e253e90ced85cd77090eb0b6d33d02
tree9868bc83c7a6a361d1c675a4a71f27dfb36e8c86
parentdb6874933593ae514a1acdb3e73ef7765a749bc9
layout: Check again for primary monitor after startup animation idle

On some hardware combinations the display can be known, then unknown again. Meaining that
when the update monitors function is called it will have a value, then be called again
setting this.primaryMonitor to null. If the timing is just right gnome shell will
loadBackground, then by the time the animation is ready the monitor will be gone,
thus methods will be called on a null value. This adds more checks for a valid
primary monitor, and wont play the animation until the system is idle AND has a valid
priamry monitor.

Fixes: #5003
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2144>
js/ui/layout.js